<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
</head>
<body>

	<a href="user/testString">testString</a>

	<br>
	<br>

	<a href="user/testVoid">testVoid</a>

	<br>
	<br>

	<a href="user/ModelAndView">ModelAndView</a>

	<br>
	<br>

	<a href="user/ForwardOrRedirect">ForwardOrRedirect</a>

	<br>
	<br>

	<input value="发送" id="bot" type="button">

	<script >
		$("#bot").click(function() {
			alert("jjjj");
			$.ajax({
				url:"user/testAjax",
				contentType:"application/json;charset=utf-8",
				data:'{"username":"李四","password":"123","age":"22"}',
				dataType:"json",
				type:"post",
				success:function(data){
					alert("123456");
					alert(data);
				}
			})
		})
	</script>
</body>
</html>